package com.xmg.boot.demo.bootlesson1.user.entity.dm;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 微信搜一搜：贺贺学编程
 * @date 2023-11-20
 * @since 2023-11-29
 *
 */
@Data
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "DEPARTMENT_ID", type = IdType.AUTO)
    private Integer departmentId;

    private String departmentName;

    /**
     * 外键 - 部门下的所有用户
     **/
    @TableField(exist = false)
    private List<Employee> employees;

}
